package com.feng.ssm.dao;

import com.feng.ssm.pojo.Book;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

//@Component
@Repository
public interface BookMapper {
    //增加
    public int addBook(Book book);

    //删除
//    public int deleteBook(@Param("bookId") int id);
    public int deleteBook(int id);

    //改
    public int updateBook(Book book);

    //查询
    public Book queryBookById(int id);

    //查询所有
    public List<Book> queryAllBook();

}
